package com.quectel.util.client.mongo.builder;

import com.mongodb.BasicDBList;

/**
 * mongo高级查询list构造器
 *
 * @author CL
 */
public class MongoListParamHelper extends BasicDBList {


    public MongoListParamHelper() {
        super();
    }

    public MongoListParamHelper append(Object v) {
        this.add(v);
        return this;
    }

    public MongoListParamHelper appendAll(Object... vs) {
        if (vs == null) {
            return this;
        }
        for (Object v : vs) {
            this.add(v);
        }
        return this;
    }
}
